<?php
class Car
{
	public $name="奥拓";
	public $color;
	// 在实例化类的时候自动执行函数
	public function __construct($num){
		echo "xbs".$num;
	}

	public function run()
	{
		echo "run";
	}
	public function ziareng($num)
	{
		echo $this->name."ziareng";
	}

	public function paoiniu()
	{
		echo $this->name."ziareng";
	}

	public function __destruct()
	{
		echo "die";
	}
}